home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: spider.research.kpn.com!usenet
- From: Rene Bultje <R.M.Bultje@research.kpn.com>
- Subject: Calling C-functions in Delphi
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <3161079D.5621@research.kpn.com>
- Sender: usenet@news.research.kpn.com (USENET News System)
- Nntp-Posting-Host: gd0114.research.kpn.com
- Content-Transfer-Encoding: 7bit
- Organization: KPN Research, Groningen, The Netherlands
- Mime-Version: 1.0
- Date: Tue, 2 Apr 1996 10:55:25 GMT
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Hi,
-
- I looking for a solution for the following problem:
-
- How can I multiply two numbers in Delphi, using a C-function
-
- C->>
- void Multiply(int number1, int number2, int *result)
- {
- *result = (number1 * number2);
- }
-
- Delphi->>
- Input number1;
- Input number2;
- Call Multiply(); <-- How do I have to call this function?
- Show result;
-
- There are two questions:
- 1. How do I declare the function Multiply to make it exportable to
- Delphi.
- 2. And how can you pass the three arguments in the C-function.
-
- Who can help me with this problem.
-
- Thanks,
-
- Rene
- (R.M.Bultje@Research.Kpn.Com)
-